home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / instools / prelude.zip / LINGUA13.EXE / ETFTEST.C < prev    next >
C/C++ Source or Header  |  1994-02-17  |  1KB  |  31 lines

  1. /* --------------------------------------------*\
  2. | etftest.c (version 1.3)  (C) SichemSoft 1993  |
  3. | Roghorst 160, 6708 KS Wageningen, Netherlands |
  4. | check for language independent applications   |
  5. | author: Anneke Sicherer-Roetman, date: 930916 |
  6. \* --------------------------------------------*/
  7.  
  8. #include <stdio.h>
  9. #include <string.h>
  10. #include "ui_text.h"
  11.  
  12. extern unsigned _ui_memcount,_ui_filcount;
  13.  
  14. int main(int argc,char *argv[])
  15. {
  16.    char filename[81],version[81]; unsigned i;
  17.  
  18.    if (argc>3) return 1;
  19.    if (argc==3) strcpy(version,argv[2]); else version[0]='\0';
  20.    if (argc>=2) strcpy(filename,argv[1]); else strcpy(filename,"english");
  21.  
  22.    if (ui_loadtext(filename,version)) {
  23.       printf("--- %u memory items\n",_ui_memcount);
  24.       for (i=0; i<_ui_memcount; i++) printf("%3u %s\n",i,ui_text[i]);
  25.       printf("--- %u file items\n",_ui_filcount);
  26.    for (i=0; i<_ui_filcount; i++) printf("%3u %s\n",i,ui_filetext(i));
  27.       ui_unloadtext();
  28.    } else puts("Fatal error");
  29.    return 0;
  30. }
  31.